﻿<ad:DocumentContent x:Class="Notoric.Gui.Windows.PagePanel"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ad="clr-namespace:AvalonDock;assembly=AvalonDock"
        xmlns:ctrl="clr-namespace:Notoric.Gui.Controls"
        x:Name="parentControl"
        Title="{Binding RelativeSource={RelativeSource Self},Path=Page.Name}"
        ToolTipService.ShowDuration="1500"
        Closed="parentControl_Closed">
    <ad:DocumentContent.ToolTip>
        <ToolTip>
            <TextBlock x:Name="pageToolTip" />
        </ToolTip>
    </ad:DocumentContent.ToolTip>
    <DockPanel LastChildFill="True">
        <ctrl:ZoomViewer x:Name="viewer" DataContext="{Binding ElementName=parentControl,Path=Page}" ZoomMax="300" ZoomMin="25" ZoomIncrement="25"/>
    </DockPanel>
</ad:DocumentContent>
